#include <stdio.h>

int main(int argc, char const *argv[])
{
    //打开文件
    FILE * file =  fopen("io.txt","w");
    if(file == NULL)
    {
        printf("打开失败...\n");
    }
    else
    {
        printf("打开成功...\n");
    }

    //关闭文件
    int result = fclose(file);
    if(result == EOF)
    {
        printf("关闭文件失败。。。\n");
    }
    else
    {
        printf("关闭文件文件成功...\n");
    }
    return 0;
}


